package com.hzf.ucenter.dao.model;

import java.io.Serializable;

public class UcenterAuthInfo implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 姓名
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 身份证号码
     *
     * @mbg.generated
     */
    private String idCard;

    /**
     * 手持证件照正面
     *
     * @mbg.generated
     */
    private String frontDocument;

    /**
     * 证件照正面
     *
     * @mbg.generated
     */
    private String cardFront;

    /**
     * 申请角色标识：0：基础用户，1：设计师，2：工人，3：直接申请工长，4：材料商，5：其他
     *
     * @mbg.generated
     */
    private Integer authType;

    /**
     * 户籍所在地
     *
     * @mbg.generated
     */
    private String cardAddress;

    /**
     * 店铺照片
     *
     * @mbg.generated
     */
    private String officeDocument;

    /**
     * 营业执照
     *
     * @mbg.generated
     */
    private String officeLicense;

    /**
     * 申请审核ID,关联用户ID
     *
     * @mbg.generated
     */
    private Integer userId;

    private long phone;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getFrontDocument() {
        return frontDocument;
    }

    public void setFrontDocument(String frontDocument) {
        this.frontDocument = frontDocument;
    }

    public String getCardFront() {
        return cardFront;
    }

    public void setCardFront(String cardFront) {
        this.cardFront = cardFront;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public String getCardAddress() {
        return cardAddress;
    }

    public void setCardAddress(String cardAddress) {
        this.cardAddress = cardAddress;
    }

    public String getOfficeDocument() {
        return officeDocument;
    }

    public void setOfficeDocument(String officeDocument) {
        this.officeDocument = officeDocument;
    }

    public String getOfficeLicense() {
        return officeLicense;
    }

    public void setOfficeLicense(String officeLicense) {
        this.officeLicense = officeLicense;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public long getPhone() {
        return phone;
    }

    public void setPhone(long phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", idCard=").append(idCard);
        sb.append(", frontDocument=").append(frontDocument);
        sb.append(", cardFront=").append(cardFront);
        sb.append(", authType=").append(authType);
        sb.append(", cardAddress=").append(cardAddress);
        sb.append(", officeDocument=").append(officeDocument);
        sb.append(", officeLicense=").append(officeLicense);
        sb.append(", userId=").append(userId);
        sb.append(", phone=").append(phone);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UcenterAuthInfo other = (UcenterAuthInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getIdCard() == null ? other.getIdCard() == null : this.getIdCard().equals(other.getIdCard()))
            && (this.getFrontDocument() == null ? other.getFrontDocument() == null : this.getFrontDocument().equals(other.getFrontDocument()))
            && (this.getCardFront() == null ? other.getCardFront() == null : this.getCardFront().equals(other.getCardFront()))
            && (this.getAuthType() == null ? other.getAuthType() == null : this.getAuthType().equals(other.getAuthType()))
            && (this.getCardAddress() == null ? other.getCardAddress() == null : this.getCardAddress().equals(other.getCardAddress()))
            && (this.getOfficeDocument() == null ? other.getOfficeDocument() == null : this.getOfficeDocument().equals(other.getOfficeDocument()))
            && (this.getOfficeLicense() == null ? other.getOfficeLicense() == null : this.getOfficeLicense().equals(other.getOfficeLicense()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getIdCard() == null) ? 0 : getIdCard().hashCode());
        result = prime * result + ((getFrontDocument() == null) ? 0 : getFrontDocument().hashCode());
        result = prime * result + ((getCardFront() == null) ? 0 : getCardFront().hashCode());
        result = prime * result + ((getAuthType() == null) ? 0 : getAuthType().hashCode());
        result = prime * result + ((getCardAddress() == null) ? 0 : getCardAddress().hashCode());
        result = prime * result + ((getOfficeDocument() == null) ? 0 : getOfficeDocument().hashCode());
        result = prime * result + ((getOfficeLicense() == null) ? 0 : getOfficeLicense().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        return result;
    }
}